#ifndef _XINPUT_H
#define _XINPUT_H

#include <Arduino.h>

class XInput {
public:
  XInput(int pin, bool pressLevel = false): _pin(pin), _pressLevel(pressLevel) { }
  XInput &init(void);
  bool read(void);
  bool read(unsigned long filterTime);
private:
  int _pin;
  bool _pressLevel;
};

#endif // _XINPUT_H
